<%@ include file="/taglibs.jsp"%>

<title>Winter War Administration - Registrations</title>

<button onclick="location.href='registration.do?method=edit&amp;conID=${conID }'">New Registration</button>

<display:table name="registrations" id="reg" pagesize="10" requestURI="registration.do?method=list&amp;conID=${conID }">
	<display:column property="regID" paramId="registrationID" paramProperty="regID" href="registration.do?method=edit&conID=${conID }"  sortable="true"/>
	<display:column title="Registrant" sortable="true">${reg.user.lastName }, ${reg.user.firstName }</display:column> 
	<display:column title="type"  sortable="true">
		<c:choose>
			<c:when test="${reg.type == 1}">Single Day</c:when>
			<c:when test="${reg.type == 2}">Weekend</c:when>
			<c:when test="${reg.type == 3}">ASL Weekend</c:when>
		</c:choose>
	</display:column>
	<display:column title="events" sortable="true">${reg.eventsRegistered}</display:column>
	<display:column property="cost" sortable="true"/>
	<display:column property="costOffset" sortable="true"/>
	<display:column property="paid" sortable="true"/>
	<display:column property="insertDate" sortable="true" />
</display:table>
